package ru.acme.lab08.task4;

class Task4 {
	public static void main(String[] argv) {
		Integer[] array = new Integer[] {3, 3, 7, 3, 7, 9, 9, 9, 7, 3};
		Integer count3 = 0;
		Integer count7 = 0;
		Integer count9 = 0;
		for (int i = 0; i < array.length; ++i) {
			switch (array[i]) {
				case 3:
					++count3;
					break;
				case 7:
					++count7;
					break;
				case 9:
					++count9;
					break;
			}
		}
		System.out.println("Count of 3 = " + count3 + ", count of 7 = " + count7 + ", count of 9 = " + count9);
	}
}